package cn.iocoder.yudao.module.wms.controller.admin.saleorder.vo;

import cn.iocoder.yudao.module.wms.dal.dataobject.saleorder.SaleDetailDO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;


@Schema(description = "管理后台 - 销售订单主新增/修改 Request VO")
@Data
public class SaleOrderSaveReqVO {

    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "22953")
    private Integer id;

    @Schema(description = "流水号", requiredMode = Schema.RequiredMode.REQUIRED)
    private String serialNumber;

    @Schema(description = "业务员id", requiredMode = Schema.RequiredMode.REQUIRED, example = "29432")
    private Long personId;

    @Schema(description = "客户id", requiredMode = Schema.RequiredMode.REQUIRED, example = "1053")
    private Long customerId;

    @Schema(description = "订单日期", requiredMode = Schema.RequiredMode.REQUIRED)
    private LocalDateTime orderDate;

    @Schema(description = "备注", example = "随便")
    private String remark;

    @Schema(description = "销售订单子列表")
    private List<SaleDetailDO> saleDetails;
    /***
     * 数量
     */
    private Double number;

    /***
     * 已出库数量
     */
    private Double outNumber;

    private Integer status;
    /**
     * 流程id
     */
    private String processInstanceId;
}